<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- 
	管理员登录后直接跳转到本页面，展现项目信息
	循环输出奖项信息时，在最后加上一列表示项目状态(通过、待处理、不通过)
	管理员可通过修改此列的radioBox达到修改项目状态的目的
	在本页通过modal实现不跳转直接添加获奖信息
 -->
<html>                                                                                             
	<head>
		<meta charset="UTF-8">
		<title>所有项目</title>

		<meta charset="UTF-8">
			<meta http-equiv="X-UA-Compatible" content="IE=edge">
			<meta name="viewport" content="width=device-width, initial-scale=1">
			<meta name="description" content="">
			<meta name="author" content="">
			<style>
			.navbar{
				background-color:rgb(#FFFFFF)
			}
			table tbody tr:nth-child(odd){background:#F4F4F4;}
			table tbody td:nth-child(even){color:#C00;}
			</style>
	</head>
	<body>
				<%@ include file="manage_base.jsp" %>
						<form action="/ScienceManagement/ManageSearchInfo" method="post">
							<div class="row" >
							<div class="col-lg-6">
								<div class="input-group">
								<input type="text" class="form-control" aria-label="..." name="searchInfo">
								<div class="input-group-btn">
									<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">选择查询类别 <span class="caret"></span></button>
									<ul class="dropdown-menu dropdown-menu-right">
									<li><label><input name="searchCategory" type="radio" value="district" />项目地区</label></li>
									<li><label><input name="searchCategory" type="radio" value="projectLeader" />项目负责人</label></li>
									<li><label><input name="searchCategory" type="radio" value="projectStatus" />项目状态</label></li>
									</ul>
								</div>
								<div class="input-group-btn">
									<input type="submit" value="提交" class="btn btn-default dropdown-toggle"  >
								</div>
								</div>
							</div>
							</div>
						</form>	
				<div class="panel panel-default">
				<!-- Default panel contents -->
				<div class="panel-heading" >
				</div>
				<!-- Table -->
				<table class="table">
				<thead>
                <tr>
                  <th>项目编号</th>
				  <th>名称</th>
				  <th>类别</th>
				  <th>地区</th>
				  <th>负责人</th>
                  <th>时间</th>
                  <th>经费</th>
                  <th>状态</th>
                </tr>
              </thead>
              <tbody>
              <c:forEach items="${projectsList}" var="user">
              <tr>
                    <td>${user.projectSerialNumber}</td><!-- EL表达式简单输出相关信息 -->
					<td>${user.projectName}</td>
					<td>${user.projectCategory}</td>
					<td>${user.district}</td>
					<td>${user.projectLeader}</td>
					<td>${user.projectTime}</td>
					<td>${user.projectExpenditure}</td>
					<td>${user.projectStatus}</td>
                </tr>
              </c:forEach>
              </tbody>
			</table>
		</div>
	</body>
</html>